<?php
class model_language extends database_mysql
{
	public function mdl_lang_list()
    {
        $row = parent::mysql_fetch_all_rows("
            SELECT ID as lang_id,Lang as lang_name FROM ". prefix ."language WHERE Status='true' ORDER BY DefaultAdmin DESC
        ");
        
        parent::mysql_close_connection();
        
 		return $row;
    }
	
	public  function  mdl_get_dir_name($ID)
    {
        $sql = "SELECT `DirName` FROM `".prefix."language` WHERE `ID` = '$ID'";
        $row =parent::mysql_fetch_one_rows($sql);
        parent::mysql_close_connection();
        return $row["DirName"];
    }
    
}